package com.yyge.entity;

import java.util.Objects;

public class Rolr {
    private Integer roleId;
    private String roleName;

    public Integer getRoleId() {
        return roleId;
    }

    public void setRolrid(Integer rolrId) {
        this.roleId = rolrId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Rolr rolr = (Rolr) o;
        return Objects.equals(roleId, rolr.roleId) && Objects.equals(roleName, rolr.roleName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(roleId, roleName);
    }

    @Override
    public String toString() {
        return "Rolr{" +
                "rolrid=" + roleId +
                ", roleName='" + roleName + '\'' +
                '}';
    }
}
